package TUILayer;//makes this class a part of the TUILayer package
import java.util.Scanner;
/**
 * 
 * User interface - main menu
 * The entry-point for the application:
 * Create an instance of class MainMenuUI and the constructor starts the application
 * 
 * @author (kbh) 
 * @version (2005.03.31)
 * (FEN): 2006.02.24: Comments translated into English
 * (FEN): 2006.03.21: Some changes to the architecture in order to assure layering
 *                    and loose coupling
 *                    
 * (KBH): 2008.10.24: Change af manimenuStart to if
 */
public class MainMenuUI
{
    private Scanner keyboard;
   
    public MainMenuUI()
    {
        this.keyboard = new Scanner(System.in);
    }
   
    public int readInt() {
        int integer = keyboard.nextInt();
        return integer;
    }
   
    public String readLine() {
        String string = keyboard.nextLine();
        return string;
    }
   
    public void writeMainMenu()
    {       
        System.out.println("\f *** MainMenu ***");
        System.out.println(" (1) AddressBook");
        System.out.println(" (2) DVDs");
        System.out.println(" (3) Loan");
        System.out.println("");
        System.out.println(" (9) Quit application");
        System.out.print("\n Make your choise: ");
    }
    
    public void writeEnd()
    {
        System.out.println(" The System is shuting down ");
    }
    
    public void writeUnknownInput() {
        System.out.println(" Unknown input! ");
    }
}
